package org.ns.example.pojo;

public class ResponseEntity {

    private int state;
    private String message;
    private Object content;

    public static ResponseEntity newResponseEntity(int state, String message) {
        return new ResponseEntity(state, message);
    }

    public static ResponseEntity newResponseEntity(int state, String message, Object content) {
        return new ResponseEntity(state, message, content);
    }

    public ResponseEntity() {

    }

    public ResponseEntity(int state, String message) {
        this.state = state;
        this.message = message;
    }

    public ResponseEntity(int state, String message, Object content) {
        this.state = state;
        this.message = message;
        this.content = content;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getContent() {
        return content;
    }

    public void setContent(Object content) {
        this.content = content;
    }
}
